<template>
    <div style="width: 100%;height: 100%">
        <el-collapse v-model="activeNames">
            <el-collapse-item title="项目立项阶段" name="1">
                <el-row>
                    <el-col>
                        <el-button type="success" class="btnclass" @click="Projectfilingform">项目备案表1</el-button>
                        <el-button type="success" class="btnclass" @click="Projectinitiationform">立项申请表</el-button>
                        <el-button type="success" class="btnclass" @click="ProjectinitiationAssignmentform">立项任务书</el-button>
                        <el-button type="success" class="btnclass" @click="ProjectFundscheduleform">资金计划表</el-button>
                    </el-col>
                </el-row>
            </el-collapse-item>
            <el-collapse-item title="项目前期准备阶段" name="2">
                <el-row>
                    <el-col>
                        <el-button type="success" class="btnclass">项目设备使用计划表</el-button>
                        <el-button type="success" class="btnclass" @click="Projectimplementationscheduleform">项目实施计划表</el-button>
                        <el-button type="success" class="btnclass" @click="Projectpersonnelscheduleform">项目人员计划表</el-button>
                    </el-col>
                </el-row>
            </el-collapse-item>
            <el-collapse-item title="项目日常管理阶段" name="3">
                <el-row>
                    <el-col>
                        <el-button type="success" class="btnclass" @click="ProjectLogform">项目日志</el-button> 
                        <el-button type="success" class="btnclass" @click="Projectpersonnelform">项目人员考勤表</el-button>
                        <el-button type="success" class="btnclass" @click="Projectpersonneltransferform">项目人员调动表</el-button>
                        <el-button type="success" class="btnclass">项目设备调动表</el-button>
                        <el-button type="success" class="btnclass" @click="Projectscheduleform">项目进度表</el-button>
                        <el-button type="success" class="btnclass" @click="ProjectcapitalDetailedform">项目资金使用明细表</el-button>
                        <el-button type="success" class="btnclass" @click="Projecttoolusageaccountform">项目工具使用台账</el-button>
                        <el-button type="success" class="btnclass" @click="Projectequipmentuseaccountform">项目设备使用台账</el-button>
<!--                        <el-button type="success" class="btnclass">项目设计开发评审</el-button>-->
<!--                        <el-button type="success" class="btnclass">项目评审意见跟踪</el-button>-->
<!--                        <el-button type="success" class="btnclass">项目变更申请单</el-button>-->
<!--                        <el-button type="success" class="btnclass">项目变更通知单</el-button>-->
                    </el-col>
                </el-row>
                <el-row>
                    <el-col>
<!--                        <el-button type="success" class="btnclass">项目终止通知单</el-button>-->
<!--                        <el-button type="success" class="btnclass">项目终止申请单</el-button>-->
                    </el-col>
                </el-row>
            </el-collapse-item>
            <el-collapse-item title="项目总结阶段" name="4">
                <el-row>
                    <el-col>
                        <el-button type="success" class="btnclass" @click="ProjectSummaryform">项目总结表</el-button>
                    </el-col>
                </el-row>
            </el-collapse-item>
        </el-collapse>

        <el-dialog :visible.sync="Projectfilingform_dialog.show" :fullscreen="true" title="项目备案表" top="0vh" :modal="false">
            <ProjectfilingformTable :project="Projectfilingform_dialog.project"></ProjectfilingformTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectinitiationform_dialog.show" :fullscreen="true" title="立项申请表" top="0vh" :modal="false">
            <ProjectinitiationformTable :project="Projectinitiationform_dialog.project"></ProjectinitiationformTable>
        </el-dialog>

        <el-dialog :visible.sync="ProjectinitiationAssignment_dialog.show" :fullscreen="true" title="立项任务书" top="0vh" :modal="false">
            <ProjectinitiationAssignmentTable :project="ProjectinitiationAssignment_dialog.project"></ProjectinitiationAssignmentTable>
        </el-dialog>

        <el-dialog :visible.sync="ProjectFundschedule_dialog.show" :fullscreen="true" title="资金计划表" top="0vh" :modal="false">
            <ProjectFundscheduleTable :project="ProjectFundschedule_dialog.project"></ProjectFundscheduleTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectimplementationschedule_dialog.show" :fullscreen="true" title="项目实施计划表" top="0vh" :modal="false">
            <ProjectimplementationscheduleTable :project="Projectimplementationschedule_dialog.project"></ProjectimplementationscheduleTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectpersonnelschedule_dialog.show" :fullscreen="true" title="项目人员计划表" top="0vh" :modal="false">
            <ProjectpersonnelscheduleTable :project="Projectpersonnelschedule_dialog.project"></ProjectpersonnelscheduleTable>
        </el-dialog>

        <el-dialog :visible.sync="ProjectLog_dialog.show" :fullscreen="true" title="项目日志" top="0vh" :modal="false">
            <ProjectLogTable :project="ProjectLog_dialog.project"></ProjectLogTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectpersonnel_dialog.show" :fullscreen="true" title="项目人员考勤" top="0vh" :modal="false">
            <ProjectpersonnelTable :project="Projectpersonnel_dialog.project"></ProjectpersonnelTable>
        </el-dialog>

        <el-dialog :visible.sync="ProjectSummary_dialog.show" :fullscreen="true" title="项目总结表" top="0vh" :modal="false">
            <ProjectSummaryTable :project="ProjectSummary_dialog.project"></ProjectSummaryTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectequipmentuseaccount_dialog.show" :fullscreen="true" title="项目设备使用台账" top="0vh" :modal="false">
            <ProjectequipmentuseaccountTable :project="Projectequipmentuseaccount_dialog.project"></ProjectequipmentuseaccountTable>
        </el-dialog>

        <el-dialog :visible.sync="Projecttoolusageaccount_dialog.show" :fullscreen="true" title="项目工具使用台账" top="0vh" :modal="false">
            <ProjecttoolusageaccountTable :project="Projecttoolusageaccount_dialog.project"></ProjecttoolusageaccountTable>
        </el-dialog>

        <el-dialog :visible.sync="ProjectcapitalDetailed_dialog.show" :fullscreen="true" title="项目资金使用明细表" top="0vh" :modal="false">
            <ProjectcapitalDetailedTable :project="ProjectcapitalDetailed_dialog.project"></ProjectcapitalDetailedTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectpersonneltransfer_dialog.show" :fullscreen="true" title="项目人员调动表" top="0vh" :modal="false">
            <ProjectpersonneltransferTable :project="Projectpersonneltransfer_dialog.project"></ProjectpersonneltransferTable>
        </el-dialog>

        <el-dialog :visible.sync="Projectschedule_dialog.show" :fullscreen="true" title="项目进度表" top="0vh" :modal="false">
            <ProjectscheduleTable :project="Projectschedule_dialog.project"></ProjectscheduleTable>
        </el-dialog>

    </div>
</template>

<script>
    import ProjectfilingformTable from "./Table/ProjectfilingformTable";
    import ProjectinitiationformTable from "./Table/ProjectinitiationformTable";
    import ProjectinitiationAssignmentTable from "./Table/ProjectinitiationAssignmentTable";
    import ProjectFundscheduleTable from "./Table/ProjectFundscheduleTable";

    import ProjectimplementationscheduleTable from "./Table/ProjectimplementationscheduleTable";
    import ProjectpersonnelscheduleTable from "./Table/ProjectpersonnelscheduleTable";

    import ProjectLogTable from "./Table/ProjectLogTable";
    import ProjectpersonnelTable from "./Table/ProjectpersonnelTable";
    import ProjectequipmentuseaccountTable from "./Table/ProjectequipmentuseaccountTable";
    import ProjecttoolusageaccountTable from "./Table/ProjecttoolusageaccountTable";
    import ProjectcapitalDetailedTable from "./Table/ProjectcapitalDetailedTable";
    import ProjectpersonneltransferTable from "./Table/ProjectpersonneltransferTable";
    import ProjectscheduleTable from "./Table/ProjectscheduleTable";

    import ProjectSummaryTable from "./Table/ProjectSummaryTable";

    export default {
        name: "ProjectReport",
        components:{
            ProjectfilingformTable,ProjectinitiationformTable,
            ProjectinitiationAssignmentTable,ProjectFundscheduleTable,
            ProjectimplementationscheduleTable,ProjectpersonnelscheduleTable,
            ProjectLogTable,ProjectpersonnelTable,ProjectSummaryTable,
            ProjectequipmentuseaccountTable,ProjecttoolusageaccountTable,
            ProjectcapitalDetailedTable,ProjectpersonneltransferTable,
            ProjectscheduleTable,
        },
        props: {
            project: {
                type: Object,
                required: true,
            },
        },
        data(){
            return{
                activeNames:['1','2','3','4'],
                Projectfilingform_dialog:{
                    show:false,
                    project:{}
                },
                Projectinitiationform_dialog:{
                    show:false,
                    project:{}
                },
                ProjectinitiationAssignment_dialog:{
                    show:false,
                    project:{}
                },
                //资金计划表
                ProjectFundschedule_dialog:{
                    show:false,
                    project:{}
                },
                //项目实施计划表
                Projectimplementationschedule_dialog:{
                    show:false,
                    project:{}
                },
                //项目人员计划表
                Projectpersonnelschedule_dialog:{
                    show:false,
                    project:{}
                },
                //项目日志
                ProjectLog_dialog:{
                    show:false,
                    project:{}
                },
                //项目人员考情
                Projectpersonnel_dialog:{
                    show:false,
                    project:{}
                },
                //项目进度表
                Projectschedule_dialog:{
                    show:false,
                    project:{}
                },
                //项目总结表
                ProjectSummary_dialog: {
                    show:false,
                    project:{}
                },
                //项目设备使用台账
                Projectequipmentuseaccount_dialog:{
                    show:false,
                    project:{}
                },
                //项目工具使用台账
                Projecttoolusageaccount_dialog:{
                    show:false,
                    project:{}
                },
                //项目资金使用明细表
                ProjectcapitalDetailed_dialog:{
                    show:false,
                    project:{}
                },
                //项目人员调动表
                Projectpersonneltransfer_dialog:{
                    show:false,
                    project:{}
                },
            }
        },
        methods:{
            //项目备案表
            Projectfilingform(){
                this.Projectfilingform_dialog.show = true
                this.Projectfilingform_dialog.project = this.project
            },
            //立项申请表
            Projectinitiationform(){
                this.Projectinitiationform_dialog.show = true
                this.Projectinitiationform_dialog.project = this.project
            },
            ProjectinitiationAssignmentform(){
                this.ProjectinitiationAssignment_dialog.show = true
                this.ProjectinitiationAssignment_dialog.project = this.project
            },
            ProjectFundscheduleform(){
                this.ProjectFundschedule_dialog.show = true
                this.ProjectFundschedule_dialog.project = this.project
            },
            //项目实施计划表
            Projectimplementationscheduleform(){
                this.Projectimplementationschedule_dialog.show = true
                this.Projectimplementationschedule_dialog.project = this.project
            },
            //项目人员计划表
            Projectpersonnelscheduleform(){
                this.Projectpersonnelschedule_dialog.show = true
                this.Projectpersonnelschedule_dialog.project = this.project
            },
            //项目日志
            ProjectLogform(){
                this.ProjectLog_dialog.show = true
                this.ProjectLog_dialog.project = this.project
            },
            //项目人员考情
            Projectpersonnelform(){
                this.Projectpersonnel_dialog.show = true
                this.Projectpersonnel_dialog.project = this.project
            },
            //项目进度表
            Projectscheduleform(){
                this.Projectschedule_dialog.show = true
                this.Projectschedule_dialog.project = this.project
            },
            //项目总结表
            ProjectSummaryform(){
                this.ProjectSummary_dialog.show = true
                this.ProjectSummary_dialog.project = this.project
            },
            //项目设备使用台账
            Projectequipmentuseaccountform(){
                this.Projectequipmentuseaccount_dialog.show = true
                this.Projectequipmentuseaccount_dialog.project = this.project
            },
            //项目设备使用台账
            Projecttoolusageaccountform(){
                this.Projecttoolusageaccount_dialog.show = true
                this.Projecttoolusageaccount_dialog.project = this.project
            },
            //项目设备使用台账
            ProjectcapitalDetailedform(){
                this.ProjectcapitalDetailed_dialog.show = true
                this.ProjectcapitalDetailed_dialog.project = this.project
            },
            //项目人员调动表
            Projectpersonneltransferform(){
                this.Projectpersonneltransfer_dialog.show = true
                this.Projectpersonneltransfer_dialog.project = this.project
            },
        }
    }
</script>

<style scoped>
    .btnclass{
       margin-bottom: 10px;
    }
</style>
